import request from '@/utils/request'
export default {

    //添加小节
    addVideo(eduVideo) {
        return request({
            url: '/eduservice/eduVideo/addEduVideo',
            method: 'post',
            data: eduVideo
          })
    },

    //删除小节
    deleteVideo(id) {
        return request({
            url: '/eduservice/eduVideo/'+id,
            method: 'delete'
          })
    },

  //根据id查询章节
  getEduVideo(id) {
    return request({
      url: `/eduservice/eduVideo/getEduVideoInfo/${id}`,
      method: 'get'
    })
  },

  //修改章节
  updateEduVideo(eduVideo) {
    return request({
      url: `/eduservice/eduVideo/updateEduVideo`,
      method: 'post',
      data:eduVideo

    })
  },

}
